package com.kobeliu.pojo.netty;

import com.sun.org.apache.xpath.internal.operations.Bool;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class ChatMsg {

    private String senderId;      //发送者用户Id
    private String receiverId;    //接收者Id
    private Integer receiverType;  //消息接收者类型，HR OR CAND
    private String msg;            //聊天内容
    private Integer msgType;       //消息类型
    private String msgId;           //用于消息的签收
    private LocalDateTime chatTime; //消息的聊天时间
    private Integer showMsgDateTimeFlag; //标记存储数据库，用于历史展示

    private String videoPath;            //视频地址
    private Integer videoWidth;          //视频宽度
    private Integer videoHeight;          //视频高度
    private Integer videoTime;             //视频时间

    private String voicePath;            //语音地址
    private Integer speakVoiceDuration;   //语音持续时间
    private Boolean isRead;               //消息标记是否已读

    private String resumeUserId;          //候选人用户id
    private String resumeName;             //简历名称
    private String resumePosition;         //候选人职位

    private Boolean isReceiverOnLine;       //接收人是否在线
}
